import request from "@/api/request.js";

export function getCommentList(queryinfo) {
    return request({
        url: "/api/comment/getCommentByUserId/" + queryinfo.userId + "?no=" + queryinfo.no + "&size=" + queryinfo.size,
        method: "get",
    })
}

export function getCommentByVideoId(videoId) {
    return request({
        url: "/api/comment/getCommentByVideoId/" + videoId + "?no=" + 1 + "&size=" + 100,
        method: "get",
    })
}

export function sendComment(params) {
    return request({
        url: "/api/comment/sendComment",
        method: "post",
        data: params
    })
}
